home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global g1erSprLoc, gPage, gNumSpr, gMaxBoutons
- curseur(2)
- set gNumSpr to -2
- if gPage = 0 then
- set fin to gMaxBoutons
- else
- set fin to g1erSprLoc + 2
- end if
- repeat with i = g1erSprLoc to fin
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- end
-
- on mouseUp
- global g1erSprLoc, gPage, gNumSpr, gMaxBoutons, gSurvolPrec
- curseur(1)
- set monNumSpr to -2
- if gPage = 0 then
- set fin to gMaxBoutons
- else
- set fin to g1erSprLoc + 2
- end if
- repeat with i = g1erSprLoc to fin
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if (monNumSpr = gNumSpr) and (monNumSpr > 0) then
- if (gNumSpr = 25) or (gNumSpr = 21) then
- MouseClick(gNumSpr - g1erSprLoc)
- else
- beep()
- set gSurvolPrec to -1
- end if
- else
- pass()
- end if
- end
-
- on MouseClick monSpr
- global gCDpath, gPage, gMaxBoutons, g1erSprLoc, gLocLabel, gSensTrans, gVersion
- curseur(6)
- if monSpr = 0 then
- set gPage to 0
- else
- if monSpr = 1 then
- set gPage to gPage - 1
- else
- if monSpr = 2 then
- set gPage to gPage + 1
- else
- set gPage to monSpr - 2
- end if
- end if
- end if
- if gPage >= 0 then
- set the fileName of cast "FICHE TH2" to gVersion & "PT" & gPage & ".PIC"
- if gPage = 0 then
- set the visible of sprite g1erSprLoc to 0
- set the visible of sprite (g1erSprLoc + 1) to 0
- repeat with i = g1erSprLoc + 2 to gMaxBoutons
- set the visible of sprite i to 1
- end repeat
- else
- if gPage <= 14 then
- if gPage < 14 then
- set the visible of sprite (g1erSprLoc + 2) to 1
- else
- set the visible of sprite (g1erSprLoc + 2) to 0
- end if
- set the visible of sprite g1erSprLoc to 1
- set the visible of sprite (g1erSprLoc + 1) to 1
- if gPage <> 14 then
- set the visible of sprite (g1erSprLoc + 2) to 1
- else
- set the visible of sprite (g1erSprLoc + 2) to 0
- end if
- repeat with i = g1erSprLoc + 3 to gMaxBoutons
- set the visible of sprite i to 0
- end repeat
- else
- set gPage to 14
- end if
- end if
- else
- set gPage to 0
- end if
- if monSpr < 2 then
- set gSensTrans to 1
- else
- set gSensTrans to 2
- end if
- set gLocLabel to "TH:RN2"
- end
-